import request from '@/utils/request'


export function getPaperList(params){
    return request({
        url : '/paper/list',
        method : 'get',
        params
    })
}

export function getPaperStatistics(id){
    return request({
        url : '/paper/statistics/' + id,
        method : 'get',
    })
}


export function getPaperDetail(id){
    return request({
        url : '/paper/' + id,
        method : 'get'
    })
}


export function getPaperById(id){
    return request({
        url : '/paper/id/' + id,
        method : 'get'
    })
}


export function delPaper(id){
    return request({
        url : '/paper/del/' + id,
        method : 'post',
    })
}


export function editPaper(data){
    return request({
        url : '/paper/edit',
        method : 'post',
        data
    })
}

export default {
    getPaperList,
    getPaperDetail,
    editPaper,
    delPaper,
    getPaperById,
    getPaperStatistics
};